package com.ehome.poct.base.api.feign.device;

import com.ehome.poct.base.api.dto.device.DeviceSnoQry;
import com.ehome.poct.base.api.dto.device.TestDeviceNewZVersionUpgradeDTO;
import com.ehome.poct.base.api.vo.clinic.PayOrderFrontLimitTermClinicVO;
import com.ehome.poct.base.api.vo.device.TestDeviceNewZVersionUpgradeVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.*;


/**
 * 新Z轴平滑迁移到4.0变更记录表。用于标识，这是台1.0的机器，但是使用的是4.0的系统控制器
 *
 * @author ehome
 * @Date 2022-10-25 09:49
 */
@FeignClient(value = "${service.poct-base:}${service.suffix.poct-base:}",path="/newzversionupgrade", contextId = "testnewzversionupgrade")
public interface TestDeviceNewZVersionUpgradeFeginClient {

    /**
     * 新增一个新Z轴升级记录
     * @param dto 记录实体
     * @return
     */
    @ApiOperation("新增一个新Z轴升级记录")
    @PostMapping
    TestDeviceNewZVersionUpgradeVO addNewSZxisUgradeRec(@RequestBody TestDeviceNewZVersionUpgradeDTO dto);

    /**
     * 查询sno是否已经升级过
     * @param qry sno
     * @return
     */
    @GetMapping("/one")
    TestDeviceNewZVersionUpgradeVO queryOne(@SpringQueryMap DeviceSnoQry qry);

}
